package cn.zd.thumbbackend.service;

import cn.zd.thumbbackend.model.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletRequest;

/**
* @author zheng
* @description 针对表【user】的数据库操作Service
* @createDate 2025-05-20 14:44:44
*/
public interface UserService extends IService<User> {
    
    /**
     * 用户登录接口
     * @param userId 用户id
     * @param request 请求
     * @return 返回
     */
    User login(long userId, HttpServletRequest request);
    
    /**
     * 获取登录用户接口
     * @param request 请求
     * @return 返回
     */
    User getLoginUser(HttpServletRequest request);
    
    
}
